﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

public static class BVHSearcher
{
    // dictionary???
    public static Dictionary<string, string> keyMaps = new Dictionary<string, string> {

        // base action
        {"walkly", "walk"},
        {"runly", "run"},
        {"idlely", "idle"},

        // scene sweep
        //{ "wipe", "wipe"},
        //{ "wipely", "wipe"},

        //{ "push", "push"},
        //{ "pushly", "push"},
        //{ "pushely", "push"},
        //{"pushinly", "push_81_06"},
        //{"pushly", "push_81_06"},

        //{ "sweep", "sweep"},
        //{ "sweeply", "sweep"},

        //{ "polish", "polish"},
        //{ "polishly", "polish"},
        //{ "polishely", "polish"}, //polishes

        //{ "mop", "mop"},
        //{ "moply", "mop"},
        //{ "mopinly", "mop"}, //is moping
        
        //{"eatly", "eat_79_15"},

        //{ "textly","texting_and_walking"},

        //{"pointedly","pointing_forward" },
        //{"thumbly","sitting_thumbs_up" },
        //{"sadly","defeated" },
        //{"angrily","sitting_angry" },
        //{ "aroundly","walk_around_the_artwork"},
        //{ "eatly","eat_2"},
        //{"dinnerly","eat_1"},
        //{"havedinnerly","eat_3"},
        //{"surprisely","surprised"},
        //{"sayly","tell_story_1"},

        //{"tellly","tell_story_2"},
        //{ "tell", "tell_story_2"},

        //{"speakly","tell_story_3"},
        //{"rubly","shoulder_rubbing"},
        //{"cleanly","wash_window"},
        //{"callly","talk_phone"},
        //{"bitterly","banging_fist"},
        //{"madly","defeated_idle"},
        //{"unbelievably","sit_disbiefly"},
        //{"writely","write_on_the_blackboard"},

        //{"crampedly","cramped" },
        //{"hitly","play_drum"},
        //{"claply","clap"},
        //{"drinkly","stand_drink"},
        //{"drink","stand_drink"},
        //{"eat","eat_2" },
    };
    public static string searchMotionForKey(string keyword)
    {
        if (keyword != null && keyMaps.ContainsKey(keyword))
        {
            return keyMaps[keyword];
        }
        else return "";
    }
}

